home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / dooratio.zip / DOORATIO.DOC < prev    next >
Text File  |  1992-06-28  |  5KB  |  106 lines

  1. DOORATIO         <c> 1992       Karl Schneider
  2.                                 8505 Woodwick Ct.
  3.                                 Tampa, FL 33615
  4.                                 Voice: 813-884-9661 days/eves
  5.                                 BBS:   "   "   "    MIDNIGHT-0800 E.S.T.
  6.                                                     (14.4 HST)
  7.  
  8.  
  9. -------------------------------------------------------------------------
  10. 6-28-92:  Bug fix:  Was not consistently finding ACTIVITY.00x filepath
  11. resulting in ERRORLEVEL 3 exit.  Fixed.  Was not returning correct
  12. errorlevel 2 for color callers.  Fixed.
  13. Slight changes in OUTFILE.EXE - does not now send the 'Warning,
  14. 60 seconds to go' message and the 'end of file' message.
  15. -------------------------------------------------------------------------
  16. 6-22-92:  Bug fix:  Was not finding SECLEVEL.DAT file when user had
  17. over 30 conferences selected.  Should now work up to 999.  Now allows
  18. for 0 (zero) entered in Makewild Ratio in the callers security pro-
  19. file which will disregard ratios.  Also, ERRORLEVEL CHANGES have been
  20. made.  See below and sample .BAT file.
  21. -------------------------------------------------------------------------
  22.  
  23. DOORATIO is a Wildcat 3.x+ utility which will allow any DOOR or
  24. HOOK to reject a caller if his Download/Upload Ratio exceeds that
  25. allowed for his security level in MAKEWILD.  It was requested by a
  26. fellow WC sysop who wants to limit access to a ROMBRAIN Door
  27. (CD-ROM Downloads) by 'file hogs', but it can be easily adapted to
  28. any other DOS activity called directly from Wildcat.
  29.  
  30. DOORATIO goes into a DOOR or HOOK batch file.  It runs very fast and
  31. exits with the following ERRORLEVELS:
  32.  
  33. 3:  The program was unable to open some necessary file.  Installed
  34.     wrong.
  35.  
  36. 2:  The users ratio is OVER the maximum allowable in MAKEWILD, and
  37.     is using COLOR mode
  38.  
  39. 1:  Users ratio is OVER the maximum and is using MONO mode
  40.  
  41. 0:  Users ratio is OK (under) the allowed.
  42.  
  43.  
  44. I have also included a copy of OUTFILE.EXE which can, if you wish,
  45. be used to send an ASCII or ANSI message to the caller after rejecting
  46. access, similar to the way in which Wildcat sends RATIO.BBS for Downloads.
  47.  
  48. OUTFILE does NOT at this time support the Wildcat @CODES@, so do NOT
  49. specify the RATIO.BBS file that comes with Wildcat.
  50.  
  51. Put the .EXE files anywhere in your PATH - Wildcat will take care
  52. of running them from the proper directory.
  53.  
  54. vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
  55. You MUST HAVE the WCNODEID Environment variable set!  This is done
  56. either in AUTOEXEC.BAT (usually) for a single node system, or in
  57. one of your CATx.BAT files for multi-line systems.
  58. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  59.  
  60. Here's a sample DOOR batch file using DOORATIO.  Note this could also
  61. be a FILEx.BAT, etc. (any of the 'hooks')  In a multinode system,
  62. this will be DOORx.RUN, etc.
  63.  
  64. dooratio
  65. *if errorlevel 3 goto bad_cmd
  66. if errorlevel 2 goto bad_ratio2
  67. if errorlevel 1 goto bad_ratio1
  68. REM Here, put the regular commands for the door or hook
  69. goto end
  70. *:bad_cmd
  71. *echo PROGRAM ERROR
  72. *pause
  73. *goto end
  74. :bad_ratio2
  75. outfile \wc30\sorry.ans 1
  76. goto end
  77. :bad_ratio1
  78. outfile \wc30\sorry.asc 1
  79. :end
  80. ----------------------------------------------------------------
  81. Edit the 'sorry' pathnames as desired, and remove the * asterisks.
  82. 'sorry.ans' could be an ANSI color display file for color users
  83. and 'sorry.asc' is a plain ASCII type for mono callers.  The '1'
  84. in the OUTFILE commands means that the program will automatically
  85. exit 1 minute after the file is transmitted.  See OUTFILE.DOC for
  86. full information on this program.
  87.  
  88. When the program is operating properly you can remove those lines
  89. now starting with *.
  90.  
  91. When the caller is rejected from the Door or Hook by DOORATIO, a line
  92. will be added to the appropriate ACTIVITY.xxx file just like Wildcat
  93. does when a DOWNLOAD request is denied.  It says something like:
  94.  
  95.      * Over download ratio, request denied.  Current ratio is 24
  96.  
  97. I've tested this program as thoroughly as I can, and believe it to
  98. be bug-free.  Please report any problems to me, and understand that
  99. I'm unable to give any sort of warranty concerning its usability, etc.
  100. It's pretty straightforward and I can't see how it could cause any
  101. trouble.  If it's helpful I would very much appreciate you registering
  102. it.  Any contribution over $35 will give you full registration and
  103. support on ALL my Wildcat utilities.  Thanks!
  104.  
  105. -eof-
  106.